<a href="%"></a>
<?php
/**
 * ============================================================================
 * Doxt Version: 1.0           
 * Web: http:
 * Copyright (C) 2007 - 2010 Doxt Technology Inc., All Rights Reserved.
 * ---------------------------------------------
 * $Date: 2008.4.8
*/

  if ($_POST["btn_sub"])
  {
    include_once("sub_edit_news.php");
	exit(0);
  }
/* 分类列表文件,显示所有的分类 */
  //include("list_cate.php");

  $NEWS_ID = intval( $_GET["id"] );
  if (empty($NEWS_ID)) exit(0);

  $query = "SELECT * FROM $TBL_MEM WHERE id='$NEWS_ID'";
  $result = mysql_query( $query ) or die(mysql_error());
  $rows = mysql_fetch_array( $result);    
  /* 指定模板文件 */
  $tpl -> set_file(array("main" => "edit_news.htm"));  
  $tpl -> set_block("main","TYPE_LIST","type_list"); 
  $tpl -> set_var(array(
						 "id" => $rows['id'],
                         "name" => $rows['name'],
						 "sex" => $rows['sex'],
						 "addr" => $rows['addr'],
						 "tel" => $rows['tel'],
						 "mobile" => $rows['mobile'],													"profession" =>$rows["profession"],		
						 "addr"=> $rows['addr'],						 
	     				 "birth" => $rows['birth'],	
						 "idk" => $rows['idk'],
						 "email" => $rows['email'],											 
						 "time" => $rows['reg_time'],
                       ));
  $tpl -> set_var( $conf);
  $tpl -> parse("Output", "main");
  $tpl -> p("Output");
  exit(0);
?>